﻿@model ElectronicsMarket.Models.SearchModel
           
@using (Html.BeginForm("Index", "Search", FormMethod.Get))
{
    <div>				
		<div class="searchForm">
			<div class="area">
				<div class="name">
					<input id="nameInput" type="text" name="productName" size="35"/>
				</div>
				<div class="label">
					<label>Tên hàng hóa:</label>
				</div>
			</div>
			<div class="area">
				<span class="label">
					<label>Chủng loại:</label>
				</span>
				<span class="select">
					<select name="category">
                        <option value="0">Tất cả</option>
                        @foreach (var c in Model.CategoryList)
                        {
                            <option value="@c.CATEGORY_ID">@c.CATEGORY_NAME</option>    
                        }
					</select>
				</span>
				<span class="space"></span>
				<span class="label">
					<label>Nhà sản xuất:</label>
				</span>
				<span class="select">
					<select name="manufacture">
                        <option value="0">Tất cả</option>
                        @foreach (var m in Model.ManufactureList)
                        {
                            <option value="@m.MANUFACTURE_ID">@m.MANUFACTURE_NAME</option>    
                        }
					</select>
				</span>
			</div>
			<div class="submitButton">
				<input id="submit" type="submit" value="Tìm kiếm"/>
			</div>
		</div>
	</div>
}